package com.yj.suncity.utis;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import com.yj.suncity.user.bean.ShopCateBean;

public class ShopCateManager {
	
	private static ShopCateManager manager;
	
	private static Map<String, List<ShopCateBean>> cateMap;

	
	
	public synchronized static ShopCateManager getInstance(){
		if (manager==null) {
			manager = new ShopCateManager();
			cateMap=new HashMap<String, List<ShopCateBean>>();

		}
		return manager;
	}
	
	public  void addShopCate(List<ShopCateBean> value){
		if (cateMap==null) {
			cateMap = new HashMap<String, List<ShopCateBean>>();
		}
		cateMap.put("cate", value);
	}
	public List<ShopCateBean> getShopCate(){
		if (cateMap==null) {
			return null;
		}
		return cateMap.get("cate");
	}
}
